package org.transformatorhuis.unix.server.example;

import org.transformatorhuis.unix.server.CloneableServer;
import org.transformatorhuis.unix.server.Server;
import org.transformatorhuis.unix.server.ServerFactory;

import java.util.UUID;

/**
 * User: Olivier Van Acker
 * Date: Mar 18, 2010
 */
public class ExampleCloneServer {

    public static void main(String[] args) {
        try {
            Server server = ServerFactory.createInstance(args,
                    new ExampleCloneableThread(UUID.randomUUID().toString()));
            server.run(3, 5);
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

}
